<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Form</title>
</h:head>
<h:body>
	<p:fieldset legend="Meu Cadastro" toggleable="true">


		<h:form>
			<p:growl id="avisos" showDetail="true" life="3000" />
			<h:panelGrid columns="2">
				<h:outputText value="Nome:" />
				<p:inputText id="nome" value="#{testeBean.nome}" />

				<h:outputText value="Observações:" />
				<p:inputTextarea value="#{testeBean.observacao}" />

				<h:outputText value="Data cadastro:" />
				<p:calendar value="#{testeBean.dataCadastro}" />

				<h:outputText value="Telefone:" />
				<p:inputMask mask="(999)9999-9999" value="#{testeBean.telefone}" />
				<h:outputText value="CPF:" />
				<p:inputMask mask="999.999.999-99" value="#{testeBean.cpf}" />

				<h:outputText value="Descrição:" />
				<p:keyboard layout="qwertyBasic" value="#{testeBean.descricao}" />
				<h:outputText value="Senha:" />
				<p:keyboard password="true" keypadOnly="true"
					value="#{testeBean.descricao}" />
			</h:panelGrid>
			<p:separator style="width: 80%; height: 5px" />


			<p:commandButton value="Testar" actionListener="#{testeBean.testar}"
				update="avisos,mensagens" />
			<p:messages id="mensagens" showDetail="true" />
		</h:form>


	</p:fieldset>


</h:body>

</html>